package com.qf.spring.service.impl;

import com.qf.spring.service.UserService;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.Random;

@Service
public class UserServiceImpl implements UserService {
    @Override
    public void addUser() {

        System.out.println("执行UserService+++++++++");
    }
    public void update(){

        System.out.println("update执行了+++++++++++++++++++++++++++++");
    }

    public int  delete(int id){
        System.out.println("delete执行了++++++++++++++++++++"+id);
        if (new Random().nextBoolean()){
            int i = 1/0;
        }
        return 0;
    }
}
